package com.example.parking.domain.repository;

import com.example.parking.domain.model.ParkingOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface ParkingOrderRepository extends JpaRepository<ParkingOrder, Long> {
    Optional<ParkingOrder> findFirstByPlateNoAndStatusOrderByEntryTimeDesc(String plateNo, ParkingOrder.OrderStatus status);
}


